/* 全局样式 - 响应式支持 */

/* 通用页面样式 */
.home,
.editor-container {
  width: 100%;
}

/* Home页面样式 */
.home h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #282c34;
  transition: font-size 0.3s ease;
}

.home h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: #444;
  transition: font-size 0.3s ease;
}

.home p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #666;
}

/* 按钮通用样式 */
button,
.btn {
  background-color: #61dafb;
  color: #282c34;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

button:hover,
.btn:hover {
  background-color: #4fa8c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(97, 218, 251, 0.3);
}

/* Login页面样式 */
.login {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.login h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #282c34;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #61dafb;
  box-shadow: 0 0 0 2px rgba(97, 218, 251, 0.2);
}

/* Editor页面样式 */
.editor-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.editor-container > button {
  align-self: flex-start;
}

/* 响应式设计 - 超大屏幕 (1440px+) */
@media (min-width: 1440px) {
  .home h1 {
    font-size: 3rem;
  }
  
  .home h2 {
    font-size: 1.75rem;
  }
  
  .login {
    max-width: 450px;
    padding: 2.5rem;
  }
}

/* 响应式设计 - 平板横屏 (992px-1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .home h1 {
    font-size: 2.25rem;
  }
  
  .login {
    max-width: 420px;
  }
}

/* 响应式设计 - 平板竖屏 (768px-991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .home h1 {
    font-size: 2rem;
  }
  
  .home h2 {
    font-size: 1.35rem;
  }
  
  .login {
    max-width: 100%;
  }
  
  button,
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* 响应式设计 - 手机横屏 (640px-767px) */
@media (max-width: 767px) {
  .home h1 {
    font-size: 1.75rem;
  }
  
  .home h2 {
    font-size: 1.25rem;
  }
  
  .home p {
    font-size: 0.95rem;
  }
  
  .login {
    padding: 1.5rem;
  }
  
  .login h2 {
    font-size: 1.5rem;
  }
  
  button,
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
  }
  
  .editor-container > button {
    align-self: stretch;
  }
}

/* 响应式设计 - 手机竖屏 (小于640px) */
@media (max-width: 639px) {
  .home h1 {
    font-size: 1.5rem;
  }
  
  .home h2 {
    font-size: 1.15rem;
  }
  
  .login {
    padding: 1.25rem;
  }
  
  .login h2 {
    font-size: 1.35rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
}